<%--

  User: PING
  Date: 2022/9/7
  Time: 9:50
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.javaweb.common.StringTool" %>
<html lang="zh-CN">
<meta charset="UTF-8">
<head>
    <title>jsp example</title>
    <link rel="stylesheet" href="../css/main.css"/>
    <style>
        .login {
            padding-left:10px;
            width:450px ;
            height:550px;
            border: solid 2px #dedede;
            margin:30px auto;
            border-radius: 10px;


        }
        .title {
            text-align: center;
            font-size:28px;
        }
        .form {
            float:left;
            padding-left: 50px;
        }
        .warning {
            margin-top:15px;
            padding-left:10px ;
            color: darkorange;

        }


        .form p {
            font-size:14px;
        }
        .form input {
            margin-top:15px;
            border: none;
            border-bottom: solid 1px #eee;
            outline-style: none;
            height:35px;
        }
        .form input[type="text"]:focus,
        .form input[type="password"]:focus {
            border-bottom: solid 1px skyblue;
        }

        .form input[type="submit"] {
            width:60%;
            height: 40px;
            margin: 20px 0 30px 0;
            color:#fff;
            border:none;
            background-color: deepskyblue;
            border-radius: 5px;
        }
        .form input[type="submit"]:hover {
            background-color: #490104;
            color: #fff;
            cursor: pointer;
        }

    </style>
</head>
<body>
<%
//    request.setCharacterEncoding("UTF-8");
    String info = request.getParameter("info") ;
    if (info != null) {
        info = StringTool.URLDecodeInUTF(info) ;
    } else {
        info = "" ;
    }
//    info = java.net.URLDecoder.decode(info, "UTF-8") ;

%>
    <!-- header -->
    <%@include file="header.jsp"%>
    <!-- main part -->
    <div class="container">
        <hr>

        <div class="main">
            <div class="show">

                <div class="login">
                    <div class="title">
                        <p>登录</p>
                    </div>
                    <div class="form">
                        <form action="process.jsp" method="get">
                            <span class="warning"><%=info == null ? "" : info%></span>
                            <p>你的名字：</p>
                            <input type="text" name="name" placeholder="input your name">
                            <p>你的密码：</p>
                            <input type="password" name="pwd" placeholder="your password">
                            <input type="submit" value="提 &nbsp;交">
                        </form>
                    </div>
                </div>
            </div>
        </div>

    </div>
   <%@ include file="footer.jsp"%>
</body>
</html>
